package jusda.caa.minio.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.Map;

@ApiModel(value = "FileAttributeDTO", description = "文件属性回参")
public class FileAttributeDTO {

    @ApiModelProperty(name = "bucketName", value = "文件桶名称")
    private String bucketName;

    @ApiModelProperty(name = "name", value = "服务器文件名称")
    private String name;

    @ApiModelProperty(name = "contentType", value = "文件类型")
    private String contentType;

    @ApiModelProperty(name = "etag", value = "minio etag")
    private String etag;

    @ApiModelProperty(name = "createdTime", value = "文件上传时间")
    private Long createdTime;

    @ApiModelProperty(name = "length", value = "文件大小")
    private Long length;

    @ApiModelProperty(name = "hearder", value = "文件请求头部信息")
    private Map<String, List<String>> hearder;

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getEtag() {
        return etag;
    }

    public void setEtag(String etag) {
        this.etag = etag;
    }

    public Long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Long createdTime) {
        this.createdTime = createdTime;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

    public Map<String, List<String>> getHearder() {
        return hearder;
    }

    public void setHearder(Map<String, List<String>> hearder) {
        this.hearder = hearder;
    }
}
